// 登录者数据
let userPool = [
  { id: 'xxx000', name: 'super', psw: 'super', power: 0, token: 'XXXXXXXXXXXXXXX', avatar: '', role: '超级管理员'},
  { id: "6465dfafa8647fa3231ba711", name: 'admin', psw: 'admin', power: 1, token: 'AAAAAAAAAAAAAAA', avatar: '', role: '默认管理员'},
  { id: 'bbb222', name: 'agent', psw: 'agent', power: 2, token: 'BBBBBBBBBBBBBBB', avatar: '', role: '某某甲方'},
  { id: 'ccc333', name: 'client', psw: 'client', power: 3, token: 'CCCCCCCCCCCCCC', avatar: '', role: '二级商户3'},
]
// 商户数据
let clientData = []
clientData.push({id: '1', name: '厂家', type: '厂家', uplevel: '', contact:'赵总', tel: '13312345678', adress: '辽宁省沈阳市和平区三好街54号'})
clientData.push({id: '1001', name: '某某甲方', type: '代理商/甲方', uplevel: '厂家', contact:'钱总', tel: '13322345678', adress: '辽宁省大连市54号'})
clientData.push({id: '1002', name: '某某甲方2', type: '代理商/甲方', uplevel: '厂家', contact:'孙总', tel: '13332345678', adress: '辽宁省鞍山市54号'})
clientData.push({id: '1003', name: '某某代理商', type: '代理商/甲方', uplevel: '厂家', contact:'李总', tel: '13342345678', adress: '辽宁省抚顺市54号'})
let clientIndex = 1 
while(clientIndex < 20) {
  let _id = clientIndex < 10 ?`200${clientIndex}`:`20${clientIndex}`
  clientData.push({
    id: _id, 
    name: `二级商户${clientIndex}`,
    type: '商户',
    uplevel: clientIndex%3==0?'某某甲方':'某某代理商',
    contact: `${clientIndex}总`,
    tel: `1330024${_id}`,
    address: `辽宁省沈阳市和平区三好街${clientIndex}号`,
  })
  clientIndex++
}

// 操作员数据
let operatorData = [
  {id: 1, name: '小赵', client: '厂家', power: '全部', tel: '13322223333'},
  {id: 2, name: '小钱', client: '厂家', power: '全部', tel: '13322223333'},
  {id: 3, name: '小孙', client: '某某甲方', power: '代理商/甲方', tel: '13322223333'},
  {id: 4, name: '小李', client: '某某甲方', power: '代理商/甲方', tel: '13322223333'},
  {id: 5, name: '小周', client: '二级商户3', power: '商户', tel: '13322223333'},
  {id: 6, name: '小吴', client: '二级商户3', power: '商户', tel: '13322223333'},
]

// 固件数据
let romData = [
  {id: 1, vendor: '华诚', board: 's2809', name: 's2809双edp1920x1080', ver: '1.0.1', rom: 's2809v1.8_7.1_双edp1920x1080去掉lg_230222（中性改usb和网口灯+去掉搜狗+英文谷歌套件）'},
  {id: 2, vendor: '华诚', board: 's2809', name: 's2809双lvds1366*768', ver: '1.0.1', rom: 's2809v1.8_7.1_双edp1920x1080去掉lg_230222（中性改usb和网口灯+去掉搜狗+英文谷歌套件）'},
  {id: 3, vendor: '华诚', board: 's2809', name: 's2809双lvds1366*768', ver: '1.0.2', rom: 's2809v1.8_7.1_双edp1920x1080去掉lg_230222（中性改usb和网口灯+去掉搜狗+英文谷歌套件）'},
  {id: 4, vendor: '星河', board: 'ZY3201', name: 'ZY3201双edp1920x1080/1366*768', ver: '1.0.1', rom: 's2809v1.8_7.1_双edp1920x1080去掉lg_230222（中性改usb和网口灯+去掉搜狗+英文谷歌套件）'},
  {id: 5, vendor: '华诚', board: 's6863', name: 's2809双edp1920x1080', ver: '1.0.1', rom: 's2809v1.8_7.1_双edp1920x1080去掉lg_230222（中性改usb和网口灯+去掉搜狗+英文谷歌套件）'},
  {id: 6, vendor: '星河', board: 'ZY3561', name: 'ZY3561单lvds1920x1080', ver: '1.0.1', rom: 's2809v1.8_7.1_双edp1920x1080去掉lg_230222（中性改usb和网口灯+去掉搜狗+英文谷歌套件）'},
]

// 设备型号
let devTypeData = [
  {id: 1, vendor: '华诚', name: 'A115', rom: 's2809双edp1920x1080', cpu: 'rk3288', board: 's2809', memory: '4+16', screen: '双edp', dpi: '1920x1080/1366x768'},
  {id: 2, vendor: '星河', name: 'B222', rom: 'ZY3201双edp1920x1080/1366*768', cpu: 'rk3288', board: 's2809', memory: '4+16', screen: '双edp', dpi: '1920x1080/1366x768'},
  {id: 3, vendor: '星河', name: 'C333', rom: 'ZY3561单lvds1920x1080', cpu: 'rk3288', board: 's2809', memory: '4+16', screen: '双edp', dpi: '1920x1080/1366x768'},
  {id: 4, vendor: '星河', name: '星河双edp4444', rom: 'ZY3561单lvds1920x1080', cpu: 'rk3288', board: 's2809', memory: '4+16', screen: '双edp', dpi: '1920x1080/1366x768'},
  {id: 5, vendor: '华诚', name: '华诚xxxxxx', rom: '未分配', cpu: 'rk3288', board: 's2809', memory: '4+16', screen: '双edp', dpi: '1920x1080/1366x768'},
  {id: 6, vendor: '华诚', name: '设备型号名字', rom: '未分配', cpu: 'rk3288', board: 's2809', memory: '4+16', screen: '双edp', dpi: '1920x1080/1366x768'},
]

// 终端数据
let deviceData = []
let devIndex = 1 
while(devIndex < 20) {
  let _id = devIndex < 10 ?`100${devIndex}`:`10${devIndex}`
  deviceData.push({
    id: _id, 
    proId: devIndex%5==0?'20230229':'20230301',
    status: devIndex%3==0?'离线':'在线',
    sn: `SN1234567890${_id}`,
    devType: devIndex%3==0?'NCS2809':'QBZ3581',
    client: `二级商户${devIndex}`,
    address: `辽宁省沈阳市和平区三好街${devIndex}号`,
    tel: `1330024${_id}`,
    show: false
  })
  devIndex++
}

// 终端设备参数
let devParm = [
  { k: 'CPU', v: '3288'},
  { k: '固件版本', v: 'FDGJKDFGJKDFJG'},
  { k: '安卓版本', v: '11'},
  { k: '屏幕分辨率', v: '1366*768'},
  { k: '可用内存/总内存', v: '1.1GB/2.0GB'},
  { k: '可用存储/总存储', v: '2.7GB/16.0GB'},
  { k: '网络信息', v: 'wifi'},
]

// App数据
let appData = [
  {id: 1, name: '银豹收银软件', ver: 'v3.13.3', size: '30MB',datetime: '2023-02-25 12:56:20'},
  {id: 2, name: '惠管家收银软件', ver: 'v2.13.3', size: '45MB',datetime: '2023-02-24 12:56:20'},
  {id: 3, name: '排队网聚实惠', ver: 'v6.15', size: '30MB',datetime: '2023-02-25 13:56:20'},
  {id: 4, name: '理财胜手收银软件', ver: 'v7.1', size: '90MB',datetime: '2023-02-25 05:56:20'},
  {id: 5, name: '理财通商业管理系统90T', ver: 'v9.002', size: '65MB',datetime: '2023-02-25 12:30:20'},
  {id: 6, name: '惠管家收银软件', ver: 'v3.13.3', size: '130MB',datetime: '2023-02-25 12:56:20'},
  {id: 7, name: '排队网聚实惠', ver: 'v3.13.3', size: '320MB',datetime: '2023-02-25 12:56:20'},
  {id: 8, name: '理财胜手收银软件', ver: 'v3.13.3', size: '330MB',datetime: '2023-02-25 12:56:20'},
  {id: 9, name: '理财通商业管理系统90T', ver: 'v3.13.3', size: '560MB',datetime: '2023-02-25 12:56:20'},
  {id: 10, name: '理财通商业管理系统90T', ver: 'v3.13.3', size: '30MB',datetime: '2023-02-25 12:56:20'},
  {id: 11, name: '理财胜手收银软件', ver: 'v3.13.3', size: '30MB',datetime: '2023-02-25 12:56:20'},
  {id: 12, name: '银豹收银软件', ver: 'v3.13.3', size: '30MB',datetime: '2023-02-25 12:56:20'},
  {id: 13, name: '排队网聚实惠', ver: 'v3.13.3', size: '30MB',datetime: '2023-02-25 12:56:20'},
  {id: 14, name: '银豹收银软件', ver: 'v3.13.3', size: '30MB',datetime: '2023-02-25 12:56:20'},
  {id: 15, name: '理财通商业管理系统90T', ver: 'v3.13.3', size: '30MB',datetime: '2023-02-25 12:56:20'},
  {id: 16, name: '银豹收银软件', ver: 'v3.13.3', size: '30MB',datetime: '2023-02-25 12:56:20'},
  {id: 17, name: '惠管家收银软件', ver: 'v3.13.3', size: '30MB',datetime: '2023-02-25 12:56:20'},
  {id: 18, name: '银豹收银软件', ver: 'v3.13.3', size: '30MB',datetime: '2023-02-25 12:56:20'},
  {id: 19, name: '理财胜手收银软件', ver: 'v3.13.3', size: '30MB',datetime: '2023-02-25 12:56:20'},
  {id: 20, name: '银豹收银软件', ver: 'v3.13.3', size: '30MB',datetime: '2023-02-25 12:56:20'},
]

export default {
  userPool, clientData, operatorData, romData, devTypeData, deviceData, devParm, appData
}